<html>
<head>
<title>ThaiCreate.Com Tutorial</title>
</head>
<body>
<?

		//*** Update Record ***//
			$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
	mysql_query("SET character_set_results=utf8");
	mysql_query("SET character_set_client=utf8"); 
	mysql_query("SET character_set_connection=utf8");
	$objDB = mysql_select_db("table");
		$strSQL = "UPDATE testing ";
		$strSQL .=" SET Question = '".$_POST["Question"]."' , c1 = '".$_POST["c1"]."'  ,c2 = '".$_POST["c2"]."',c3 = '".$_POST["c3"]."',c4 = '".        $_POST["c4"]."',answer = '".$_POST["answer"]."' WHERE id = '".$_GET["id"]."' ";
		$objQuery = mysql_query($strSQL);
	
?>
<script type="text/javascript">
	window.location.href = "index_Question.php";
	</script>
</body>
</html>